package com.apimarket.enums;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Description: kong中添加组件的取名异常，kong中Service和Route的Name是需要保证唯一的
 * @Author ZXR
 * @Date 2021/6/30 21:33
 * @Version 1.0
 */
public enum KongNameEnum {
    SERVICE_NAME_ERROR(400,"service名称重复"),
    ROUTE_NAME_ERROR(400,"route名称重复");

    private int code;
    private String message;
    KongNameEnum(int code,String message){
        this.code=code;
        this.message=message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "KongNameEnum{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
